{include /common/header}
<div class="row">
	<div class="col-sm-5 col-md-3 col-lg-3">
		{include side}
	</div>
	<div class="col-sm-7 col-md-9 col-lg-9">
		<div class="panel panel-default">
			<div class="panel-heading">{$channel.title}</div>
			<ul class="list-group">
				{foreach $contents as $v}
				<li class="list-group-item"><span class="pull-right">{:date('Y-m-d H:i', $v['update_time'])}</span><span style="color: #444;">•</span>&nbsp;<a href="{:content_url($v)}">{$v.title?:'暂无标题'}</a></li>
				{/foreach}
			</ul>
		</div>
		<nav>
			<ul class="pagination">
				{foreach $pages as $v}
					{if isset($v['disable'])}
						<li class="disabled"><a href="javascript:void(0);">{$v.text}</a></li>
					{elseif isset($v['current'])}
						<li class="active"><a href="javascript:void(0);">{$v.text}</a></li>
					{else}
						<li><a href="{:url('/home/content/index', ['id'=>$channel['id'], 'page'=>$v['page']])}">{$v.text}</a></li>
					{/if}
				{/foreach}
			</ul>
		</nav>
	</div>
</div>
{include /common/footer}